package com.punai.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.punai.common.core.domain.TreeBo;
import com.punai.common.core.domain.entity.SysPnDictionary;

import java.util.Collection;
import java.util.List;

public interface SysPnDictionaryService extends IService<SysPnDictionary> {
    List<TreeBo> treelist(Long companyId);

    String getNextCode(String pid,Long companyId);

    int insertPnDict(SysPnDictionary vo);

    int updatePnDict(SysPnDictionary vo);

    int delete(String id,Long companyId);

    Collection<SysPnDictionary> getChildren(String code, Long companyId);

    Collection<SysPnDictionary> getAllChildren(String code, Long companyId);

    int reloadCache();

    int resetSqlite();


}
